package com.ddch.udpsocket.util;

import android.content.Context;
import android.util.Log;
import android.widget.Toast;

/**
 * created by 韦敏敏
 * on 2019/12/19
 */
public class Util {
    private static final String TAG = "liaoming";
    public static synchronized void log(String msg){
        Log.d(TAG, msg);
    }
    public static synchronized void showToast(Context context, String msg){
     Toast mToast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);
        mToast.show();
    }
}
